﻿<phone:PhoneApplicationPage 
  x:Class="Renren.Pages.NewsPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  SupportedOrientations="Portrait" Orientation="Portrait"
  mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
  shell:SystemTray.IsVisible="False"
  
  d:DataContext="{d:DesignData /SampleData/NewsViewModel.xaml}"
  xmlns:renren="clr-namespace:Renren.Controls"
  xmlns:local="clr-namespace:Utils.UIEffect"
  local:TiltEffect.IsTiltEnabled="True">

  <!--LayoutRoot is the root grid where all page content is placed-->
  <Grid x:Name="LayoutRoot" Background="Transparent">

    <!--ContentPanel - place additional content here-->
    <Grid x:Name="ContentPanel" Margin="12,32,12,0">

      <Grid.RowDefinitions>
        <RowDefinition Height="auto"/>
        <RowDefinition Height="*"/>
        <RowDefinition Height="auto"/>
      </Grid.RowDefinitions>

      <renren:HeaderBox Grid.Row="0" x:Name="NewsPanel" Margin="0,25" />
      
      <ListBox Grid.Row="1" x:Name="CommentsListBox" ItemsSource="{Binding News.CommentList}">
        <ListBox.ItemTemplate>
          <DataTemplate>
            <renren:CommentBox Margin="0,0,0,20" Tap="CommentsListItem_Tap" />
          </DataTemplate>
        </ListBox.ItemTemplate>
      </ListBox>

      <renren:MessageBox Grid.Row="2" x:Name="MessageBox" Margin="0,20,0,20" Opacity="0.5" Text="添加回复" />
    </Grid>
  </Grid>

</phone:PhoneApplicationPage>
